//
//  ViewController.m
//  循环引用示例
//
//  Created by 江湖 on 2019/6/14.
//  Copyright © 2019 江湖. All rights reserved.
//

#import "ViewController.h"
#import "ViewController1.h"
#import "TestTool.h"
@interface ViewController ()


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    // Do any additional setup after loading the view, typically from a nib.
}


- (IBAction)jumpClick:(UIButton *)sender {
    ViewController1 *vc = [[ViewController1 alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}


//block
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
}

//是否调用dealloc方法，没有则造成了循环引用
- (void)dealloc {
    NSLog(@"0是否被销毁了");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
